class SearchCardResult {
  late bool flag;
  late int code;
  late String message;
  late List<SearchCard> data;

  SearchCardResult({required this.flag, required this.code, required this.message, required this.data});

  SearchCardResult.fromJson(Map<String, dynamic> json) {
    flag = json['flag'];
    code = json['code'];
    message = json['message'];
    if (json['data'] != null) {
      data = <SearchCard>[];
      json['data'].forEach((v) {
        data.add(new SearchCard.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['flag'] = this.flag;
    data['code'] = this.code;
    data['message'] = this.message;
    if (this.data != null) {
      data['data'] = this.data.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class SearchCard {
  late int id;
  late String articleTitle;
  late String articleContent;
  late  int isDelete;
  late int status;

  SearchCard(
      {required this.id,
        required this.articleTitle,
        required this.articleContent,
        required this.isDelete,
        required this.status});

  SearchCard.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    articleTitle = json['articleTitle'];
    articleContent = json['articleContent'];
    isDelete = json['isDelete'];
    status = json['status'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['articleTitle'] = this.articleTitle;
    data['articleContent'] = this.articleContent;
    data['isDelete'] = this.isDelete;
    data['status'] = this.status;
    return data;
  }
}